<?php
class MemberModel extends Model {
	public function updateLoginTime($memberInfo){
		return $memberInfo && $this->where(array('id'=>$memberInfo['id']))->save(array('last_login_time'=>NOW_TIME, 'last_login_ip'=>get_client_ip()));
	}
	
	public function changePassword($memberId,$password){
		return $memberId > 0 ? $this->where(array('id'=>$memberId))->setField('password', $password) : false;
	}
}